﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using newsteadWebService.Models;

namespace newsteadWebService.Controllers
{
    public class TestController : Controller
    {
        //
        // GET: /Test/
        private DBDataBase DB = new DBDataBase();

        public ActionResult Index()
        {

            bool Test = DB.OpenConnection();
            if (Test == true)
            {
                return Content("You Have Successfully Connect to Database");
            }
            else
            {
                DB.CloseConnection();
                return Content("Connection is Error");
            }
            return View();
        }

    }
}
